
def caesar(str, k):
    ans = ""

    for c in str:
        ascii = ord(c)
        ascii += k
        
        if ascii > ord('z'):
            ascii %= ord('z')
            ascii += ord('a')
            ascii -= 1

        ans += chr(ascii)
    
    return ans

print(caesar("xyz", 2))